package org.example.blogserver.blog.service;

import com.github.pagehelper.PageInfo;
import org.example.blogpojo.blog.domain.ArticleType;
import org.example.blogpojo.blog.domain.Classity;
import org.example.blogpojo.blog.query.ArticleTypeQuery;
import org.example.blogpojo.blog.vo.ArticleTypeVo;


import java.util.List;
import java.util.Map;

public interface ArticleTypeService {
    List<ArticleType> getAllArticleType();

    ArticleType getArticleTypeById(Long id);

    PageInfo<ArticleType> queryPage(ArticleTypeQuery articleTypeQuery);

    void insertArticleType(ArticleType articleType);

    void updateArticleType(ArticleType articleType);

    void deleteArticleType(Long id);

    void deleteArticleTypeByIds(Long[] ids);

    List<ArticleType> getTypeTree(Long id);

    List<ArticleTypeVo> getArticleTypeVo();

    Map<Integer, Classity> getClassityList();
}
